Simulate Threshold Grid Infection | Sealth Interview Question