Function find_last_index
pub unconstrained fn find_last_index<T, let N: u32, Env>(
array: [T; N],
find: fn[Env](T) -> bool,
) -> u32
pub unconstrained fn find_last_index<T, let N: u32, Env>(
array: [T; N],
find: fn[Env](T) -> bool,
) -> u32
Helper function to find the index of the last element in an array that satisfies a given predicate. If the element is not found, the function returns the length of the array
N