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