CalculatorSolver implemented with two HashMaps