XYZ Interview Question

Write test case