Hexaware Technologies interview question

Oops concepts