Question :
Suppose you are given two circularly linked lists, L and M. Create an algorithm for telling if L and M store the same sequence of elements (but perhaps with different starting points).
It needs to have a main Java class with main() function, inside which you can demonstrate the correctness and outputs from your Java code.