← Back to companies
[ OK ] Loaded —
[ INFO ]
$ cd
$ ls -lt
01
02
03
04
05
$ ls -lt
01
02
03
04
05
user@intervues:~/$
Given a string consisting of lowercase English letters, find the first non-repeating character. Return the character itself; if every character repeats, return the special marker '$'. The solution must efficiently determine uniqueness by examining the frequency of each character in the string.