Zach Polansky's submission of Perfect Permutation | CodeChef