Write a function that searches for an element in an array and returns the index. If the element is not present, then return -1.
Print all even numbers from an array.
Write a function that checks if a person is eligible to vote based on their age (must be 18 or older).
// write a function that return the number of nagative number in array
// write a function that returns largest number in an array
// write a function that returns smallest number in an array