Substring In Any Rotation

Company: Infosys_9sep

Difficulty: easy