Maximize protected population with one-step guard shifts | Amazon Interview Question