
There are an infinite amount of bags on a number line, one bag for each coordinate. Some of these bags contain coins.
You are given a 2D array coins , where coins[i] = [l _i , r _i , c _i ] denotes that every bag from l _i to r _i contains c _i coins.
The segments that coins contain are non-overlapping.
You are also given an integer k .
Return the maximum amount of coins you can obtain by collecting k consecutive bags.
1 <= coins.length <= 10 ^51 <= k <= 10 ^9coins[i] == [l _i , r _i , c _i ]1 <= l _i <= r _i <= 10 ^91 <= c _i <= 1000The given segments are non-overlapping.