isCyclic for SLL using Brute Force