Base2 Solutions interview question

An straightforward programming question and a testing question.