Domanda di colloquio di Lyft

Asked to recreate a standard JavaScript function from scratch.