Cymer Interview Question

Gave a scenario to solve.