Solver capable of solving 90% of Test cases.