Macy's interview question

Thread Datastructure