def solution(arr):
for i in range(1, len(arr)):
if arr[i] == 1:
arr[i - 1] += 1
if arr[i-1] == 2:
arr[i-1] = 0
arr[i] -= 1
while arr and arr[-1] == 0:
arr.pop()
return arr
而家fg做QA tester市價係幾多?
唔想頂爛市