ITHAKA interview question

Write a test case for the following program