Solutions to various coding challenges