Codex Interview Question

Solve a string challenge using programming language like javascript