Calculate how much water contained by jth glasses -- Amazon[Native C/C++]