Infosys interview question

java oops, reverse a linked list & command line tools