UKG interview question

1. Reverse the String. 2. Number of occurrence.