Let the envelope be denoted by A, B, C
and the corresponding letter is a, b, c.
The letters are inserted into the envelopes at random, and each envelope contains exactly one letter.
Possible combinations can be
Aa, Bb, Cc, Aa, Bc, Cb, Ab, Ba, Cc, Ab, Bc, Ca, Ac, Bb, Ca, Ac, Ba, Cb
So total number of possible cases =n(S)=6
Let A be event that at least one letter is in its proper envelope,
A={(Aa, Bb, Cc), (Aa, Bc, Cb), (Ac, Bb, Ca), (Ab, Ba, Cc)}
n(A)=4
So,
The probability that at least one letter is in its proper envelope P(A)=n(A)n(S)=46=23