minimum window substr
search for a range
swap nodes in pairs