O/P NOT COMING CORRECT

@Kamyanagpal hi, just a little typo in second for loop, instead nst it will be nsp right! So change that!
If your doubt is resolved then mark it resolved!
Happy coding!