LINE interview question

Basic JS