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