Pergunta de entrevista da empresa Anonymous

Reverse String and sorting array without using function