Microsoft interview question

array equilibrium