Pregunta de entrevista de Silvan Innovation Labs

write a code for function in javascript that reverses an array