Hi, I am not sure why this code is passing one testcase, but failing the other test cases. I have even checked the discussions, but they have similar code. Could someone help solve this please?
(NOTE: i have even tried changing the insertion condition in line 26 to “<=”, but same error)