Minimize operations to reduce integer to zero | Salesforce Interview Question