codewars

Codewars - convert a string to an array solution