Next Permutation

getting run time error.

Please check and let me know

hi @roshani1997abr_911f71e73100e81b upadted https://ide.codingblocks.com/s/672803