This is a homework exercise in which we have to find the pair that has most space between them without having another pair in the space, then to get the one character of the pair and put it to the end of the thing