added solution to leetcode_71