Dassault Systèmes Interview Question

Related to puzzle solving, object oriented and logic question