Find out the correct order for removing the bubbles. There will always be a logic to find the correct order.