EDF Interview Question

Q: Explain why you did this in your code?