Modify Array In Place Javascript Interview