C++ beginner friendly solution
\nclass Solution {\npublic:\n    int smallestEqual(vector<int>& nums) {\n        int n=nums.size();\n        for(int i=0;i<n;i++){\n            if(i%10==nums[i]
```\nclass Solution {\npublic:\n    int smallestEqual(vector<int>& nums) {\n        int n=nums.size();\n        for(int i=0;i<n;i++){\n            if(i%10==nums[i]){\n            return i;\n            break;}\n        }\n        return -1;\n    }\n};\n```
[]