Added solutions for first 8 tests