Canonical Interview Question

tech deep on the code