def print_array(arr):
    """
    Prints the content of a list
    :param arr: a list that needed to be printed
    :return: the string needed to print
    """
    string = ''
    for a in arr:
        string += str(a) + ' '
    return string.strip(' ')