How to deal with "What if the code is run in distributed system" follow ups?

For example, when you managed to solve a DFS question and quite excited, the interviewer asked:
could you tell me if your code works on a distributed system? If not, how to improve you code?

Please can someone tell me the general solution for questions like this?
Is there a guide?

Comments (1)