Question: why is meursault happy at the end?
Answer: At the end of The Stranger, Meursault is able to die happy because he (like Ivan Ilyich) is able to come to terms with himself as a constituent part of existence, and so live authentically.