RBC Interview Question

typical interview ones , nothing special