Lyft interview question

Questions were based on JavaScript