Pergunta de entrevista da empresa NextSphere

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