Find First Non-Repeating Element in Array Using Hash Map

Given an array of integers, find the first element that appears exactly once. If no such element exists, return -1.

Difficulty:

Console