you give n word equal length m consist lowercase latin alphabet letter the ith word denote s_iIn choose position single word change letter position previous letter alphabetical order for example change e d f change b z change y the difference word minimum number move require equal for example difference well cost 1 10 0 0 11find minimum difference s_i s_j j in word find minimum difference possible pair n word