Find the Alphabet
InterviewTime limit1sMemory limit256 MB
Given a lowercase word of length at most 100, output the 0-based first index of each letter a to z, or -1 when absent.
Problem
You are given a word consisting of lowercase English letters. For every letter from a to z, print the index of its first appearance in , or -1 if it does not appear.
Input
One line with word . The length is at most and every character is a lowercase letter.
Output
Print integers separated by spaces: the first index of a, then b, through z. Positions are -based.