Deloitte interview question

Coding question such as count the number of e in a string