Don't have Telegram yet? Try it now!
https://dev.mikamai.com/2017/02/16/find-if-a-list-is-circular-with-memory-constraint/
Find if a list is circular with memory constraint