dropFirstAndLast function (drop n first and n last elements of list or string, makes new ArraList)