Karthik's submission of Smart Strategy | CodeChef