Shortest Substring

Company: Ernst & Young-5 years Senior java developer_31may

Difficulty: medium