Question d’entretien chez Perion Network

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