# Week 2
# Question 1

def text_handle(n):
    return " ".join(n.split())


sample_text = "Hello       my       friend"
print(text_handle(sample_text))

# Time complexity: o(1)
# Space complexity: o(1)


