
There are n flights that are labeled from 1 to n .
You are given an array of flight bookings bookings , where bookings[i] = [first _i , last _i , seats _i ] represents a booking for flights first _i through last _i ( inclusive ) with seats _i seats reserved for each flight in the range.
Return an array answer of length n , where answer[i] is the total number of seats reserved for flight i .
1 <= n <= 2 * 10 ^41 <= bookings.length <= 2 * 10 ^4bookings[i].length == 31 <= first _i <= last _i <= n1 <= seats _i <= 10 ^4