NBC Sports Group Interview Question

Write a unit test for that function.