Tape Equilibrium
Problem A non-empty array A consisting of N integers is given. Array A represents numbers on a tape. Any integer P, such that 0 < P < N, splits this tape into two non-empty parts: The difference between the two parts is the value of: In other words, it is the absolute difference between the sum of…