I'm not sure if there is an existing question in leetcode that maps to this but I got asked the following during the on-site interview:
Given a series of accounts with positive or negative balances, output the series of transfers to that all of them have a balance of at least 500.
Example:
A -> 300
B -> 500
C -> 700
D -> 250
E -> 1000
Here is one of the several valid solutions
E -200, A + 200, C -250, D + 250