added solution to leetcode_59