Reworked solution to gift1

Used linkedHashMap to keep the items in the order they were received
in.