HashedIn by Deloitte Interview Question

Related to sliding window algorithm