Question d’entretien chez BOX Partners, LLC

sliding window based coding question with less time complexity