Mphasis Interview Question

char occurance in string leetcode problem