Case 1 when K > d In first step , modify all the character which are not same in S1 and S3
for i in range ( len ( s1 ) ) : NEW_LINE INDENT if ( s1 [ i ] != s3 [ i ] ) : NEW_LINE INDENT for j in range ( 3 ) : NEW_LINE DEDENT DEDENT