Finding the position in array

@Mastomaki, what result do you expect?