Hexaware Technologies interview question

Object and classes