Code for problem "Search Insert Position".