DIY: Exclusive Time of Functions

Solve the interview question "Exclusive Time of Functions" in this lesson.

Problem statement

You are given an array logs, where logs[i] represents the ithith log message formatted as a string, {function_id}:{"start" | "end"}:{timestamp} ...