To determine the position of each person based on the given clues:
1. Mohan is to the left of Pawan:
- This means Mohan (3) is to the left of Pawan (2).
2. Sohan is to the right of Pawan:
- This means Sohan (4) is to the right of Pawan (2).
3. Rohan is between Sohan and Pawan:
- Rohan (1) is positioned between Sohan and Pawan. Given Sohan is to the right of Pawan, the order from left to right could be Mohan, Pawan, Rohan, Sohan.
Therefore, the person second from the left for the photographer, following the order Mohan (3), Pawan (2), Rohan (1), Sohan (4), is Rohan, whose code is 1. Thus, the answer is 1.