NextSphere interview question

Reverse a string, Flatten an array without any built-in helpers