Hash Map improved the time complexity. The number 0 can be a stumbling block when used in if statements. Be careful!