UKG Interview Question

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