Anonymous interview question

Check if LL is circular