reverseLinkedList and squareRoot