you give integer mass represent original mass planet you give integer array asteroid asteroidsi mass ith asteroidYou arrange planet collide asteroids arbitrary order if mass planet great equal mass asteroid asteroid destroy planet gain mass asteroid Otherwise planet destroyedReturn true asteroid destroy otherwise return false Example 1input mass 10 asteroid 3919521output trueexplanation one way order asteroid 9195321 the planet collide asteroid mass 9 new planet mass 10 9 19 the planet collide asteroid mass 19 new planet mass 19 19 38 the planet collide asteroid mass 5 new planet mas 38 5 43 the planet collide asteroid mass 3 new planet mass 43 3 46 the planet collide asteroid mass 21 new planet mass 46 21 67all asteroid destroyedexample 2input mass 5 asteroid 49234output falseexplanation the planet gain mass destroy asteroid mass 23after planet destroy asteroid mass 5 4 9 4 22this 23 collision destroy asteroid Constraints1 mass 1051 asteroidslength 1051 asteroidsi 105