Find the equilibrium position of the array -- Amazon