Bright Machines interview question

Write a program to see if a given string is a palindrome. Write a program to find the first island in given array.