One test case is not getting cleared
Hello @Bhavya_Goel,
Your code is specific to n=5.
And will fail for all other values.
Make it generalized.
Refer to the following code for better understanding:
Hope, this would help.
Give a like if you are satisfied.