my code is working fine for sample test case but on submit it is showing run time error and wrong answer my code:-