Construct Target Array With Multiple Sums
Undo the operations from the target: the largest value came from the sum of the rest, so reduce it modulo that sum.
Undo the operations from the target: the largest value came from the sum of the rest, so reduce it modulo that sum.