Fishbowl Inventory Interview Question

string manipulation and dictionary for JavaScript and state handling for inventory management system