Google Interview Question

Random math questions