Qualcomm Interview Question

Loop in linked list , length of loop