Hexaware Technologies interview question

Oops concepts, loops, dynamic memory allocation