input: Write a python function to remove consecutive duplicate words from a string.
  assert remove_consecutive_duplicates("This is is a sample sample string") == "This is a sample string"
  assert remove_consecutive_duplicates("Hello Hello world") == "Hello world"
  assert remove_consecutive_duplicates("Python Python Python is great great") == "Python is great"
output: def remove_consecutive_duplicates(s):
      words = s.split()
      result = [words[0]]
      for i in range(1, len(words)):
          if words[i] != words[i - 1]:
              result.append(words[i])
      return ' '.join(result)