CT832

Wayward charms First Lone Mark

EasyL2 · Byte BanditAcceptance: 0.0%XP: 10

It is audit day at the mushroom groves of Fungaldeep. Clerk spreads the charms records across the table and picks up a sharp pencil. Task: Print the first character of s that occurs exactly once. If none exists, print -1. Input format: One line with a single lowercase string s. Output format: Print a single character or -1. Constraints: 1 <= |s| <= 87; s contains lowercase English letters.

Example 1:

Input: wzjptfmfcylcxmpvwmqczqsnrfqhoajrxujfeelfkco
Output: t

Example 2:

Input: vaosslrwqsiqremkmawwplzohcw
Output: v

Example 3:

Input: aturwlllzokbmngixtejgnxwdyegpuibfwfxkdvdgclxpevvmnopkvxv
Output: a

Constraints:

1 <= |s| <= 87; s contains lowercase English letters.

Loading...
Test Cases:No test cases
No test cases available.
Wayward charms First Lone Mark - EASY Coding Problem | CodeTikki