Basava Raj's submission of Restore the Permutation | CodeChef