D2L Interview Question

Design a test case for the problem