Kotlin
\nclass Solution {\n    fun smallestEqual(nums: IntArray): Int =\n        nums.withIndex()\n            .find { (index, num) -> index % 10 == num }\n           
```\nclass Solution {\n    fun smallestEqual(nums: IntArray): Int =\n        nums.withIndex()\n            .find { (index, num) -> index % 10 == num }\n            ?.index ?: -1\n}\n```
[]