Hexaware Technologies interview question

Oops concept