AmbitionBox.com Interview Question

How to solve multiple callbacks problem in javascript?