Solve Two String Problems | Meta Interview Question