Driver code to test above methods
public static void main ( String [ ] args ) { int N = 9 ; int insert = 1 , remove = 2 , copy = 1 ; System . out . println ( minTimeForWritingChars ( N , insert , remove , copy ) ) ; } }