CIBC Interview Question

Coding interview regarding optimization and space complexity.