if current char count is even then choose minimum from result for ( i - 1 ) chars and time for insertion and result for half of chars and time for copy
if ( i % 2 == 0 ) dp [ i ] = min ( dp [ i - 1 ] + insert , dp [ i / 2 ] + copy ) ;