Capgemini Engineering interview question

1. reverse a linked list 2. reverse a string using JAVA