Hopper Interview Question

An algorithm question