printing solutionArray in the end in case if the original attempt is successful