RBC interview question

Straight forward questions