Chatham Financial interview question

Assessment was some problem solving writing some unit testing