Help me out here
Try this test case
your code output A
thanks mate…but the issue was really with the if…else conditions.But your suggestion was helpful
You can use stress testing with anyone accepted code in such a case. I have just tested your code against my accepted code and found this test case.