Q. print items in order in which they are to be processed.
Example:
Items: shirt, pants, underpants, vest, socks, shoes, belt, watch
depedencyMapping:
shirt - [vest]
pants - [underpants]
shoes - [pants, socks]
belt - [pants]
explanation: you cannot wear shirt without first wearing vest, you cannot wear shoes without first wearing pants and socks.
It was similar to course schedule one but I couldn't come up or realize in time and ended up taking 45 min for the solution. Although I did get it and passed all the test cases.