Driver Code
public static void Main ( String [ ] args ) { string str = " abecbea " ; int idx = possiblePalinByRemovingOneChar ( str ) ; if ( idx == - 1 ) Console . Write ( " Not ▁ Possible " ) ; else if ( idx == - 2 ) Console . Write ( " Possible ▁ without ▁ " + " removing ▁ any ▁ character " ) ; else Console . Write ( " Possible ▁ by ▁ removing " + " ▁ character ▁ at ▁ index ▁ " + idx ) ; } }