Pergunta de entrevista da empresa Workday

Write an async forEach function with and without promises.