def color_string(guess: str, target: str) -> str:
    """
    Returns Wordle colors for guess given target.
    """
    c_string = ""
    for pos, letter in enumerate(guess):
        if target[pos] == letter:
            c_string += "g"
        elif letter in target:
            c_string += "y"
        else:
            c_string += "b"
    return c_string