Domanda di colloquio di CGI

There was a logics/math trick question