SoftServe interview question

Solve LeetCode task using HashMap for efficient data handling.