Solutions to problems from CodeChef website