Question d’entretien chez Amazon

Leetcode 2 medium question based on sliding window and Hash map