Company: TATA ELXSI
Difficulty: easy
Distinct First Letters of Words You are given a single line of text str made up of words separated by spaces. Take the first character of every word , reading the words from left to right. Print those characters in that same order, but print a character only the first time it appears — every later word whose first character has already been printed is skipped. Read the input from STDIN and print the output to STDOUT. Do not print any prompts, labels or other extra text, as everything written to standard output is compared against the expected answer. Input Format A single line containing the string str . The line consists of words made of English letters ( a – z , A – Z ). Consecutive words are separated by one or more space characters, and the line may also begin or end with spaces. Output Format A single line containing the first character of each word of str , separated by a single space, in the order in which those characters first occur. A character that has already been printed i