Dassault Systèmes Interview Question

OOPS and DSA with some puzzles