Champagne Tower


@terminator123456 we take the min because if it's over 1 it would inevitably overflow to the glasses below, but no reason to calculate that as we already found out that the glass we are querying is already going to be full.

@terminator123456 Because this algorithms consider the flow through each glasses, so to some glasses, the flow would be over 1. But the answer to the question is full = 1, so the answer is selected between the min value of 1 and flow q