Solutions to Various Programming Challenges