you give integer n indicate n people number 0 n 1 you give 0indexed 2D integer array meeting meetingsi xi yi timei indicate person xi person yi meet timei a person attend multiple meeting time finally give integ firstPersonPerson 0 secret initially share secret person firstPerson time 0 this secret share time meeting take place person secret more formally meet person xi secret timei share secret person yi vice versaThe secret share instantaneously that person receive secret share people meeting time framereturn list people secret meeting take place you return answer order Example 1input n 6 meeting 1252381510 firstPerson 1Output 01235explanationat time 0 person 0 share secret person 1at time 5 person 1 share secret person 2at time 8 person 2 share secret person 3at time 10 person 1 share secret person 5thus people 0 1 2 3 5 know secret meetingsexample 2input n 4 meeting 313122033 firstPerson 3Output 013explanationat time 0 person 0 share secret person 3at time 2 person 1 person 2 know secretAt time 3 person 3 share secret person 0 person 1Thus people 0 1 3 know secret meetingsexample 3input n 5 meeting 342121231 firstPerson 1output 01234explanationat time 0 person 0 share secret person 1at time 1 person 1 share secret person 2 person 2 share secret person 3note person 2 share secret time receive itat time 2 person 3 share secret person 4thus people 0 1 2 3 4 know secret meeting Constraints2 n 1051 meetingslength 105meetingsilength 30 xi yi n 1xi yi1 timei 1051 firstPerson n 1