UNext Interview Question

2 coding questions related to asynchronous programming in js