Evaluate IP Access Rules | Amazon Interview Question