Netcracker Technology interview question

Sliding window based coding question