LeetCode Solution, Easy, 1046. Last Stone Weight