GalaxE.Solutions Interview Question

counter in react. find the character occurance in a string.