zscoder's submission of Restore the Permutation | CodeChef