Driver code
public static void Main ( String [ ] args ) { String [ ] arr = { " tab " , " one " , " bat " } ; List < String > S = new List < String > ( arr ) ; int M = 3 ; int N = S . Count ; findPalindrome ( S , N , M ) ; } }