Incedo interview question

basic javascript