Problem 2823: Sliding Window. Solved on 04/14/2014.