reddit.com/r/dailyprogrammer challenge 186 Inventory System in C