A novelty dance/children’s rhyme, with apparent origins in 1940s England but similarities to songs and dances dating back centuries. Called the hokey-cokey in the UK.

There’s also a Shakespearean version.