As the others have said, "What a relief!" is a standalone phrase meaning something like "Thank God!" I have never heard "What relief!"used as a standalone phrase although it could exist as part of a larger sentence (as the others have mentioned). If you saw it in a book it was either a typo, or it was not a complete sentence by itself.