added solution to leetcode_52