Pregunta de entrevista de Bugsnag

Watched while coding a basic function and asked about alternative approaches.