Pregunta de entrevista de AmbitionBox.com

How to solve multiple callbacks problem in javascript?