Easy Java Solution
\nclass Solution {\n    public int smallestEqual(int[] nums) {\n        int k=0;\n        int flag=0;\n        int arr[]= new int[nums.length];\n        for(int
```\nclass Solution {\n    public int smallestEqual(int[] nums) {\n        int k=0;\n        int flag=0;\n        int arr[]= new int[nums.length];\n        for(int i=0;i<nums.length;i++){\n            arr[k]= i%10;\n            k++;\n        }\n        for(int i=0;i<nums.length;i++){\n            if(nums[i]==arr[i]){\n                flag=1;\n                return i;\n            }\n        }\n        return -1;\n    }\n}\n\n```
[]