A pendulum is given velocity such that its acceleration at mean and extreme positions are the same. Find the maximum angle of deflection.