RBC Interview Question

Few Math questions.