Compute infection spread time | OpenAI Interview Question