JSFiddle - React, Tailwind, and code Playground
by Prathameshsb
CSS
*{
background-color: #2c2c2c;
}
JavaScript
function test(n){
// loop over the string, for each element in the string check if it there in the map if yes, the move the position of the left pointer to the char from map + 1, and then update the value of that char from map to now being the curr character.
}
console.log(test());
*/