A simple pendulum consisting of a mass M attached to a string of length L is released from rest at an angle `alpha`. A pin is located at a distance l below the pivot point. When the pendulum swings down, the string hits the pin as shown in figure. The maximum angle `theta` which the string makes with the vertical after hitting the pin is
A. `cos^(-1) ((L cos alpha + l)/(L + l))`
B. `cos^(-1) ((L cos alpha + l)/(L - l))`
C. `cos^(-1) ((L cos alpha - 1)/(L - l))`
D. `cos^(-1) ((L cos alpha - l)/(L + l))`