String Length Info

Programming Interview Easy 4 views
Back to Questions

Problem Description

Input is a single string s is provided (can contain spaces). Output its length, first character and last character. If string is empty, output 0 - -.

Input Format

One line string.

Output Format

One line: len first last.

Sample Test Case

Input:
hello
Output:
5 h o

Constraints

Total length

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next