Test Cases (0/3)
    • swapTowardCenter([true,42,"Ada",2,"pizza"]) to return ["pizza",2,"Ada",42,true]

    • swapTowardCenter([1,2,3,4,5,6]) to return [6,5,4,3,2,1]

    • swapTowardCenter(["hi", "coding", "dojo", "fans"]) to return ["fans","dojo","coding","hi"]

    Output
    Michael
      (0/300)