Pergunta de entrevista da empresa NBC Sports Group

Write a unit test for that function.