New York Times interview question

Write/pseudocode a unit test for the project