add hash and array finding solution.