Taranpreet Singh's submission of The Mess Problem | CodeChef