from typing import List
def solution(arr: List[int], idx: int) -> int:
for x in range(idx, len(arr)):
if arr[x] == 1:
return x
return -1
func solution(arr []int, idx int) int {
for i := idx; i < len(arr); i++ {
if arr[i] == 1 {
return i
}
}
return -1
}
class Solution {
public int solution(int[] arr, int idx) {
for (int i = idx; i < arr.length; i++) {
if (arr[i] == 1) {
return i;
}
}
return -1;
}
}