Cyntexa Interview Question

A easy level string question. Return char occurence