Implemented running the solution on test cases.