apple pie's submission of Adjacency Hatred | CodeChef