RBC interview question

no tricky questions really