Amazon interview question

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