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