solve two_sum problem, and word_bank problem