def add_last_item_at_first_index(arr): temp = arr[len(arr) - 1] i = 0 while i < len(arr): temp1 = arr[i] arr[i] = temp temp = temp1 i = i + 1 return arr