Hi,
I am not sure if I am doing this right but here is the thing:
> I have a list of transaction ID-ed from 1 to 30
> Each of the transaciton is a type P, D, G respectively for Purchased, Debited and Gifted
> P and G are credit transactions
> When the type is D, the oldest credited transaction...