RBC Interview Question

Mostly syntax related questions for databases and python