With Explanation Comments:  Time: 24 ms (30.31%), Space: 22 MB (78.76%)
Like it? ->Upvote please! \u30C4\n\n\'\'\'\nclass Solution {\npublic:\n    int smallestEqual(vector& nums) {\n        \n        //loop over the whole array elem
**Like it? ->Upvote please!** \u30C4\n\n\'\'\'\nclass Solution {\npublic:\n    int smallestEqual(vector<int>& nums) {\n        \n        //loop over the whole array elements\n        for(int i=0;i<nums.size();i++)\n            //check if the current index is divisible by the current value\n            if(i%10==nums[i])\n                //if yes-> return the valid index\n                return i;\n        \n        //if no-> return -1\n        return -1;\n    }\n};\n\'\'\'\n\n**Like it? ->Upvote please!** \u30C4\n**If still not understood, feel free to comment. I will help you out**\n**Happy Coding :)**
['Array', 'C', 'C++']