Pergunta de entrevista da empresa Silvan Innovation Labs

write a code for function in javascript that reverses an array