Create findBeginning

find the beginning of the loop in the linkedlist