C++ Easy understanding | 2-Approaches | Simple solution
Approach-1\n\n\t\t vector<int>v;\n         int ind;\n\t\t   for(int i=0;i<nums.size();i++){\n\t\t\t\t   if(i%10==nums[i]){\n\t\t\t\t\t   v.push_back(i);\n\t\t\t
**Approach-1**\n```\n\t\t vector<int>v;\n         int ind;\n\t\t   for(int i=0;i<nums.size();i++){\n\t\t\t\t   if(i%10==nums[i]){\n\t\t\t\t\t   v.push_back(i);\n\t\t\t   }\n\t\t   } \n              if(v.size()==0){\n\t\t\t\tind=-1;\n\t\t\t}\n        else{\n           ind= *min_element(v.begin(),v.end());\n        }\n        return ind;\n\t\t\n```\n**Approach-2**\n```\n\t\tfor(int i = 0; i < nums.size(); i++){\n\t\t\tif(nums[i] == i%10){\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn -1;
['C']