Given an array representing the weight of astroid [5,-5,6] the positive astroid can move right side and negative astroid can move into left side.if astroid are moving towards each other then they can collide.If they are of same weight then they cancel each other.Otherwise the astroid with more weight wins.
[5,-5,6,7] => [6,7]
[1,2,-3,-6,8,-10] => [-3,-6,-10]