Pergunta de entrevista da empresa Amazon

Create a javascript function that manipulates an array in a web editor while the interviewer watches.