math's submission of Matchsticks | CodeChef