RBC Interview Question

Nothing too difficult, just average questions