Netskope Interview Question

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