IBM interview question

A question is about HashMap and sliding window logic.