Dassault Systèmes interview question

OOPS and DSA with some puzzles