Infosys interview question

Link List, stack, java oops