you give 0indexed 2d integer array event eventsi startTimei endTimei valuei the ith event start startTimei end endTimei attend event receive value valuei you choose nonoverlapping event attend sum value maximizedreturn maximum sumnote start time end time inclusive attend event start end time more specifically attend event end time t event start t 1 example 1input event 132452243output 4explanation choose green event 0 1 sum 2 2 4example 2input event 132452155output 5explanation Choose event 2 sum 5example 3input event 153151665output 8explanation choose event 0 2 sum 3 5 8 constraints2 eventslength 105eventsilength 31 startTimei endTimei 1091 valuei 106