Company: Zomato_product_Analyst
Difficulty: easy
High Delivery Time Analysis Zomato's operations team keeps a log of completed deliveries. Every log entry records the delivery's id , the date it happened on, the time the courier started and the time the courier finished . A delivery never runs past midnight, so the start and the finish always fall on the same day. The team wants to see the deliveries that ran unusually long compared with the rest of the log. For every record, its delivery time is end_time - start_time , measured in whole minutes. Let average be the mean delivery time over all N records of the log. A record is flagged when its delivery time is strictly greater than 1.5 x average . Print the flagged records, in the order they appeared in the log. Input Format The first line contains one integer N — the number of delivery records. Each of the next N lines describes one record as four space-separated values: id delivery_date start_time end_time id is an integer, delivery_date is written as YYYY-MM-DD , and both times are