chandan's submission of Beats and Pieces | CodeChef