recursive minimum insertions for a string to be palindormic
adding the minimum insertions in dp