hiphip's submission of Array Transform | CodeChef