SMC2 interview question

Oops , test cases senarios