Devesh Agarwal's submission of Beautiful Bricks | CodeChef