remove duplicates from sentence removeduplicatespython is great and java is also great java python also and great is removeduplicatespython is great and java is also great java python also and great is remove duplicates from sentence remove_duplicates python is great and java is also great java python also and great is remove_duplicates python is great and java is also great java python also and great is
def remove_duplicates(sentence: str) -> str:
    
    return " ".join(sorted(set(sentence.split())))


if __name__ == "__main__":
    import doctest

    doctest.testmod()