Please help me find error in my code


two cases passed but in other two getting run error

@be10046.19
small error in array size
this is your corrected code


it passes all the test cases
please mark your doubt as resolved :slight_smile: