Oracle interview question

- Sliding window problem in Java