Solutions to various coding tests