add zigzag-subsequence solution.