MSCI interview question

Round 2 DSA: Coin Distribution problem (DP), Merge k sorted lists