next pointers eventually revisits an earlier node in a loop. Given its head, return true if a cycle exists and false if the list terminates.next pointers eventually revisits an earlier node in a loop. Given its head, return true if a cycle exists and false if the list terminates.// Run your code to see the output here.