Pregunta de entrevista de Altimetrik

Write a function in javascript and display data without using for loop