Running the app

$ npm install

$ npm run start

Endpoint to calculate

http://localhost:3000/water-bucket?x=2&y=10&z=4