Dassault Systèmes interview question

Related to puzzle solving, object oriented and logic question