It computes whether the coffee order can be prepared or not with the ingredients available. It also indicates the ingredients that are needed to be refilled.
npm i
npm start
npm run test-cases
npm test
All the testcases have been stored as an array in testCases.js file. The logic has been written in preparation.js file.
The assumption that the next order can be started preparing as soon as any outlet is vacant has been made.