Swap Nodes in PairsMediumAcceptance Rate 61.8%Given a linked list, swap every two adjacent nodes and return its head.ExamplesExample 1Inputhead = [1,2,3,4]Output[2,1,4,3]ConstraintsThe number of nodes in the list is in the range [0, 100].0 <= Node.val <= 100