Cognizant Interview Question

explain the algorithm to find the equilibrium index of an array