Grab interview question

A live coding question in JavaScript