Codex interview question

Solve a string challenge using programming language like javascript