Time Needed to Inform All Employees

Implement solve for Time Needed to Inform All Employees. Return the required output for the provided arguments.

Examples
Input: [6,2,[2,2,-1,2,2,2],[0,0,1,0,0,0]]
Output: 1
Hints

Time Needed to Inform All Employees

Implement `solve` for **Time Needed to Inform All Employees**. Return the required output for the provided arguments.