G SAN's submission of Permuting string | CodeChef