Manhattan Associates Interview Question

Thread,collection and oops concept