solutions to coding test 2 practice problems