Accenture interview question

Equilibrium of array (leetcode) .