solver(streams) Implement Solver

Pass all the tests, that was fun :)