Only 1 test case passed.Others are not passing
Ayush, I have edited your code… Try to submit now…