solve merge k sorted lists, reverse node in k group and swap nodes in pairs