CT378

The verses at Glimmerfell

EasyL2 · Byte BanditAcceptance: 0.0%XP: 10

It is audit day at the quartz ridge of Glimmerfell. Iker spreads the verses 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| <= 54; s contains lowercase English letters.

Example 1:

Input: o
Output: o

Example 2:

Input: svstrgnos
Output: v

Example 3:

Input: cyizzixsvtdgwdcgzjadqpznaexajcros
Output: y

Constraints:

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

Loading...
Test Cases:No test cases
No test cases available.