SAP Interview Question

Receive a string, return the first letter which appears once.

Interview Answer

Anonymous

Jul 13, 2022

Iterate through string, add chars to Hashmap that counts the amount of times a char appeared. Iterate through the String again and see which char appeared once using the Hashmap.