1) E is sitting at one of the ends.
Case 1
Case 2
2) A is sitting in the exact middle.
3) Neither C nor D sit at any of the ends.
(Therefore, B sits at one of the ends)
Case 1
Case 2
4) C sits on the immediate left of B.
(Here case 1 gets eliminated because in this case, there is no one sitting on the left of B. Also, since only D is left, so D sits Between A and E)
This is the final arrangement.
Hence, B sits second to the right A.