A small sphere B of mass m is released from rest in the position and swings freely in a verticla plane, first aboutt O and then about peg A after the cord comes in contact with the peg. Determine the tension in the cord
a. just before the sphere comes in contact with the peg.
b. just after it comes in contact with the peg.