Driver code
public static void Main ( String [ ] args ) { String str = " a " ; Console . WriteLine ( findStr ( str . ToCharArray ( ) ) ) ; String str1 = " abccba " ; Console . WriteLine ( findStr ( str1 . ToCharArray ( ) ) ) ; } }