Microsoft Interview Question

Need to be very precise about the test case than just writing the code.