Search an element in the given array

Source Code: