Driver Code
public static void main ( String [ ] args ) { String s1 = "121" ; String s2 = "223" ; int a = 2 , b = 3 , c = 4 , d = 10 ; int n = s1 . length ( ) ; System . out . println ( findCost ( s1 , s2 , a , b , c , d , n ) ) ; } }