Java Solution
```\n public int smallestEqual(int[] nums) {\n        int res =-1;\n        for(int i=0;i<nums.length;i++){\n            if(i%10==nums[i]){\n                ret
```\n public int smallestEqual(int[] nums) {\n        int res =-1;\n        for(int i=0;i<nums.length;i++){\n            if(i%10==nums[i]){\n                return i;\n            }\n        }\n        return res;\n        \n    }
['Array']