Solutions to some random Codechef questions.