Google Interview Question

Some math questions.