Write a function to print a diamond pattern.
Implement print_diamond(n), where n is a positive odd integer representing the diamond's height. Return the complete pattern as a string, with newline characters between rows and no trailing newline. Each row contains centered asterisks separated by no spaces.
def print_diamond(n):