Solutions to Competitive Programming problems