ADP Interview Question

Sliding windlow dsa medium question