D2L interview question

Design a test case for the problem