Solutions to Code Chef problems