Problem 3146 · Easy
Sum the absolute index gaps of each character between s and its permutation t.
Open the interactive visualisation