Hexaware Technologies interview question

Basic oops, and cs fundamentals