added solution to leetcode_74