We have five friends: A, B, C, D, and E. Let's use the given conditions to arrange them:
1. \( A \) is sitting next to \( B \), so they must sit together.
2. \( C \) is sitting at one of the ends, so either \( C \) is at the leftmost or rightmost position.
3. \( D \) is sitting between \( A \) and \( E \), so \( D \) must be between \( A \) and \( E \).
4. \( E \) is sitting to the right of \( D \), so \( E \) must be to the right of \( D \).
Using these conditions, the seating arrangement will be:
\[
C, A, B, D, E
\]
Thus, the person sitting in the second position is \( A \).
Thus, the answer is \( \boxed{A} \).