Amazon interview question

Sliding window problem in Strings