add function printInventory(inputs) which only has console.log(result), and pass test.
add function splitItem(), and split every input items.
add function hashMap(), and save list.
add function getPromotion(barcode).
add function calculator(barcode, num).
add result and finish v1.0