/*Given an array of integers, find all the leaders in the array. An element is called a leader if it is greater than all elements to its right. The last element is always a leader.
Abstract: JavaScript is a scripting language that is used for creating web pages. It is widely used and a top contender in realworld usage. JavaScript has many dynamic features that makes it ...
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order. You may assume no duplicates in the array.