CGI interview question

There was a logics/math trick question