Pergunta de entrevista da empresa Perion Network

Write a code that checks if a given list is circular.