CIBC Interview Question

how to solve a difficult problem