title: Given a sorted array of n elements, write a function to search a given element x in array
body: <p><strong>Problem Solving:</strong> Given a sorted array of n elements, write a function to search a given element x in array.</p>
  <p>$finding an element in a given sorted array.</p>
  <p>$finding first or last occurrence of a number.</p>