Javascript counting substrings in a string | Interview Series 4

Published --