LeetCode Solutions/February 2022 LeetCoding Challenge/Add Digits.java
class Solution {
    public int addDigits(int num) {
        if (num == 0 || num % 9 != 0){
            return num % 9;
        }
        else{
            return 9;
        }
    }
}