CoinDCX interview question

1. Closure , setTimeout ,setInterval