Devesh Agarwal's submission of Different Neighbours | CodeChef