YouView interview question

Unit test for the specific problem