Compute exclusive CPU time from nested logs | Decagon Interview Question