samar's submission of CandyRush | CodeChef