you give array people people attribute people queue necessarily order each peoplei hi ki represent ith person height hi exactly ki people height greater equal hireconstruct return queue represent input array people the return queue format array queue queuej hj kj attribute jth person queue queue0 person queue Example 1input people 704471506152output 507052614471ExplanationPerson 0 height 5 people tall height frontperson 1 height 7 people tall height frontperson 2 height 5 person tall height person 0 1Person 3 height 6 person tall height person 1person 4 height 4 people tall height people 0 1 2 3person 5 height 7 person tall height person 1hence 507052614471 reconstruct queueexample 2input people 605040322214output 405022321460 Constraints1 peoplelength 20000 hi 1060 ki peoplelengthit guarantee queue reconstruct