Added solutions for all tests.