Simple java solution
class Solution {\n\n    public int smallestEqual(int[] n) {\n        int k=n.length;\n        for(int i=0;i<k;i++)\n        {\n            if(i%10==n[i])\n     
class Solution {\n\n    public int smallestEqual(int[] n) {\n        int k=n.length;\n        for(int i=0;i<k;i++)\n        {\n            if(i%10==n[i])\n                return i;\n        }\n        return -1;\n    }\n}
[]