given an array, found pairs of elements that sum up to a given value
calculate loop size in a linked list
reverse words in given text