探讨Python笔试题中涉及的航班预订座位号问题。题目给定n个航班,编号从1到n。预订表中的每条记录bookings[i] = [i, j, k]表示在从i到j的每个航班上预订了k个座位。要求通过编程返回一个长度为n的数组answer,按照航班编号顺序给出每个航班上预订的座位数。举例,输入bookings = [[1,2,10],[2,3,20],[2,5,25]], n = 5,输出结果为[10,55,45,25]。问题限定条件为1 <= bookings.length <= 20000,1 <= bookings[i][0] <= bookings[i][1] <= n <= 20000,1 <= bookings[i][2] <= 10000。