Pregunta de entrevista de Premier World Capital

Coding questions (find if array has a cycle, another related to sub string)