Pergunta de entrevista da empresa Deliveroo

Some simple JS questions. Followed by a difficult leetcode algorithm task.