Frage im Vorstellungsgespräch bei BOX Partners, LLC

sliding window based coding question with less time complexity