Pergunta de entrevista da empresa Altimetrik

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