Driver program to test above functions
public static void main ( String args [ ] ) { String str = " geeks " ; System . out . println ( findMinInsertions ( str . toCharArray ( ) , 0 , str . length ( ) - 1 ) ) ; } }