RBC interview question

Few Math questions.