Pregunta de entrevista de WeWork

Implement your own mapping function. Then do it asychronously. How would you handle errors?