Labcorp interview question

Coding - palindrome and find second largest element in array