c++||easy
class Solution {\npublic:\n    int smallestEqual(vector& nums) {\n        int n=nums.size();\n        int count=0;\n        int mn=INT_MAX;\n        for(int i=0
class Solution {\npublic:\n    int smallestEqual(vector<int>& nums) {\n        int n=nums.size();\n        int count=0;\n        int mn=INT_MAX;\n        for(int i=0;i<n;i++){\n            if(i%10==nums[i]){\n                count=1;\n                mn=min(mn,i);\n            }\n        }\n        if(count==1)\n            return mn;\n        else\n            return -1;\n        \n    }\n};
[]