Given a stream of data [‘item1_id’, ‘item1_name’, ‘item1_type’, ‘item1_price’, ‘item1_linked_item_id1’, ‘item1_linked_item_id2’, ‘item2_id’, …]
Item type can either be Entree or Category.
If the item type is Category then it won’t have price.
Create an OOP structure such that you could access these items individually and find their price and other things.
I created an OOP structure with classes and even added comments etc. and returned what ever was expected.
I still had 10 mins towards the end and asked the interviewer if I could do something more, he said no.
Then got a call saying the even the code ran it wasn’t “production quality” We are going to give you a take home test. 🤦🏽♀️