Write code to decode a secret message provided in a Google Doc.
Asked in the Coding qualification stage. The document text contains one character per line with its zero-based x and y coordinates. Implement the function below.
document_text is a string whose nonempty lines use the format x y character, where character is one Unicode character. Return the decoded rows joined by newline characters. Empty coordinates contain spaces, and trailing spaces on each row should be removed. Return an empty string when the document has no entries.
def decode_secret_message(document_text):