UBC Interview Question

Fairly standard