there n flight label 1 nyou give array flight booking booking bookingsi firsti lasti seatsi represent booking flight firsti lasti inclusive seatsi seat reserve flight rangereturn array answer length n answeri total number seat reserve flight Example 1input booking 121023202525 n 5Output 1055452525explanationflight label 1 2 3 4 5booking 1 reserve 10 10booking 2 reserve 20 20booking 3 reserve 25 25 25 25total seat 10 55 45 25 25hence answer 1055452525example 2input booking 12102215 n 2Output 1025explanationflight label 1 2booking 1 reserve 10 10booking 2 reserve 15total seat 10 25hence answer 1025 Constraints1 n 2 1041 bookingslength 2 104bookingsilength 31 firsti lasti n1 seatsi 104