Glovo Interview Question

Create a function to test a linked list for a cycle.