Amazon interview question

2385. Amount of Time for Binary Tree to Be Infected Leetcode Problem