Interview question of the issue #290 of rendezvous with cassidoo.
If you mix up the order of letters in a word, many people can slitl raed and urenadnstd tehm. Write a function that takes an input sentence, and mixes up the insides of words (anything longer than 3 letters).
Example:
> scramble(["A quick brown fox jumped over the lazy dog."])
> "A qciuk bwron fox jmepud oevr the lzay dog."
Just pnpm i
to install all dependencies and then pnpm t
to run the tests!