Back
Close

Lowercase

Statement

 Goal

A given string message, output the first and last lowercase letter of the string separated by a hyphen " - " .
Input
message the string given.
Output
Print the first and last lowercase letter of message separated by a hyphen " - " .
Constraints
0 < message length < 100.
1 < number of lowercase letters.
Example
Input
abcd
Output
a-d

Game modes
Fastest, Shortest, Reverse

Test cases
Test 1 Test
Input
abcd
Output
a-d

Validator 1 Validator
Input
abce
Output
a-e

Test 2 Test
Input
Clash of code
Output
l-e

Validator 2 Validator
Input
Clash of codx
Output
l-x

Test 3 Test
Input
T1his is a longer tesT0
Output
h-s

Validator 3 Validator
Input
t5his is a longer test2
Output
t-t

Test 4 Test
Input
Y0u might have succeeded
Output
u-d

Validator 4 Validator
Input
6Hou might have succeedeD10
Output
o-e

Solution language

Solution

Stub generator input