think-cell interview question

Programming test that requires some algorithmic thinking. It has very strict constraints to the types passed to a function.