def format_query(query):
    """
    Given    query=" word1 word2 word3
    Returns  " word1 OR word2 OR word3"

    """
    words = query.split()
    # print words

    text = ""
    for idx in range(len(words) - 1):
        text = text + words[idx] + " OR "

    text = text + words[-1]
    return text