iProgrammer interview question

ArrayPair Longest Substring Longest Palindrome