Create Inventory.cpp

solution to an interview problem