Thomson Reuters interview question

technical questions two sum, reverse a linked list