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