Easy Solution | Java | Python
Java\n\nclass Solution {\n    public int smallestEqual(int[] nums) {\n        for(int i=0; i<nums.length; i++) {\n            if(i % 10 == nums[i]) {\n         
# Java\n```\nclass Solution {\n    public int smallestEqual(int[] nums) {\n        for(int i=0; i<nums.length; i++) {\n            if(i % 10 == nums[i]) {\n                return i;\n            }\n        }\n        return -1;\n    }\n}\n```\n# Python\n```\nclass Solution:\n    def smallestEqual(self, nums: List[int]) -> int:\n        for i in range(len(nums)):\n            if (i % 10) == nums[i]:\n                return i\n        return -1\n```\nDo upvote if you like the Solution :)
['Java', 'Python3']