The second of T

Report a typo

Iterate through every second element of a list in a loop and find the index of the first word that starts with T.

It is guaranteed that at least one word with an odd index starts with T.

Sample Input 1:

Test Kora Terra Tetta Garry

Sample Output 1:

3
Write a program in Kotlin
fun solution(names: List<String>): Int {
// put your code here
}
___

Create a free account to access the full topic