Pergunta de entrevista da empresa Netskope

Typical question about having an array , perform operations on it and generate a new one