Linear Search

Write a method that returns the index of the first occurrence of given integer in a list.
Assume that the index of the first element in the list is zero.
If the number does not exist return -1.

public int search(Integer n, Integer[] list) {
}