input: Write a python function to get a slice of a list given the start and end indices.
  assert get_slice([1, 2, 3, 4, 5, 6], 2, 5) == [3, 4, 5]
  assert get_slice([10, 20, 30, 40, 50], 1, 3) == [20, 30]
  assert get_slice(['a', 'b', 'c', 'd'], 0, 2) == ['a', 'b']
output: def get_slice(lst, start, end):
      return lst[start:end]