Deloitte interview question

Dsa problems on string and sliding window