Hexaware Technologies interview question

Mostly based on engineering syllabus