Replicant interview question

Basic JS questions, loops, etc.