Dassault Systèmes interview question

Asked to solve a logic/algorithmic problem