Amazon Interview Question

Sliding window problem in Strings