Birlasoft interview question

Coin change problem with 5,20,100… denominations JS event loop React hooks