The question is: write a boolean function that receives two linked lists, and returns whether the lists are connected (at some point they both point to the same node). I was not allowed to allocate any memmory like maps, only variables. And they wanted it to be in linear time complexity o(n). My approach was to iterate over one linked list and compare each node to all the nodes in the other list but the complexity of that is o(n^2) and was not good enough