← 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 s consisting of lowercase English letters, return the first letter to appear twice. A letter a is considered to appear twice before another letter b if the second occurrence of a comes before the second occurrence of b. The input string is guaranteed to contain at least one letter that appears twice.