Tavex (Romania) interview question

Maths and Logics, pretty basic stuff.