Deloitte Interview Question

Live coding problem: Character occurence in a string.