IonIdea Interview Question

Asked to write test cases.