GreenShield interview question

Test case