Add Question 51-52.

All passed OJ test cases.