Pergunta de entrevista da empresa Okta

Output of basic JS question. Pollyfill to create map of array for JSON object.