Cognizant interview question

implement LL in Java