Cyntexa interview question

A easy level string question. Return char occurence