Why am I getting Run time error in some of the test cases and how to handle such type of errors?


allocate the array dynamically