Browsing: Beginner

Given an array, arr of n integers, and an integer element x, find whether element x is present in the array. Return the index of…