Pergunta de entrevista da empresa Nagarro

Coding: find cyclic palindrome, sort array after remove any item form list