Deloitte interview question

Live coding problem: Character occurence in a string.