aman agarwal's submission of Beautiful Bricks | CodeChef