manas agrawal's submission of The Theatre Problem | CodeChef