That the world “swarms with male and female scum” is perfectly true. Human nature is imperfect…But to think that the task of literature is to gather the pure grain from the muck heap is to reject literature itself. Artistic literature is called so because it depicts life as it really is. Its aim is truth — unconditional and honest…A writer is not a confectioner, not a dealer in cosmetics, not an entertainer; he is a man bound under compulsion, by the realization of his duty and by his conscience…To a chemist, nothing on earth is unclean. A writer must be as objective as a chemist.
It seems to me that the writer should not try to solve such questions as those of God, pessimism, etc. His business is but to describe those who have been speaking or thinking about God and pessimism, how and under what circumstances. The artist should not be the judge of his characters and conversations, but only an unbiased observer.
You are right in demanding that an artist should take an intelligent attitude to his work, but you confuse two things: solving a problem and stating a problem correctly. It is only the second that is obligatory for the artist.