https://www.geeksforgeeks.org/find-maximum-sum-possible-equal-sum-three-stacks/