public int rotatedDigits(int n) {
        if (n <= 1)
            return 0;
        int counter = 0;
        for (int i = 1; i <= n; i++) {
            if (!check(i)) {
                counter++;

            }
        }
        return counter;
    }
Why Did you create this class? what does it do?
src/problems/easy/RotatedDigits.java