Hopper interview question

An algorithm question