CGI Interview Question

There was a logics/math trick question