Crossover for Work Interview Question

Write functions for palindrome, equilibrium index.