I got Segmentation Fault. When I compiled the solve function has no errors when I implement it in equal stacks it gives me that error. the code is made to equalize 3 the sum of