Modifica findSolution in Node