Cognizant Interview Question

Reverse String, OOPs, Array, HashMap