JAVA | Short and Simple ✅
Please Upvote :D\n\nclass Solution {\n    public int smallestEqual(int[] nums) {\n        int min = 101;\n\n        for (int i = 0; i < nums.length; i++) {\n   
### **Please Upvote** :D\n```\nclass Solution {\n    public int smallestEqual(int[] nums) {\n        int min = 101;\n\n        for (int i = 0; i < nums.length; i++) {\n            if (i % 10 == nums[i]) {\n                min = Math.min(min, i);\n            }\n        }\n\n        return min == 101 ? -1 : min;\n    }\n}\n\n// TC: O(n), SC: O(1)\n```
['Java']