JSFiddle - React, Tailwind, and code Playground

JavaScript

var str = "АРГЕНТИНА МАНИТ НЕГРА";
var s = str.split('');

s.forEach(() => {
  console.log(s.join(' '));
  s.push(s.shift());
});