class Triplet which stores curr row curr col and curr rem - water of every glass
class Triplet { int row ; int col ; double rem_water ; Triplet ( int row , int col , double rem_water ) { this . row = row ; this . col = col ; this . rem_water = rem_water ; } } class GFG {