_Sam's submission of Party | CodeChef