Google Interview Question

In particular I was given one mathematical puzzle to solve