add a solution with hash map