Devesh Agarwal's submission of Crossing Blocks | CodeChef