Company: idfc_6aug
Difficulty: medium
Words Starting with Vowels in Sorted List Problem Description You are given a list l of words on a single line. Sort all the words of l in ascending alphabetical (dictionary) order . Then find every word of the sorted list whose first character is a vowel ( a , e , i , o or u ), and report each such word together with its 1-based position in the sorted list . Complete the function FindWordAndPositionContainsVowel . It receives the input line words and returns one string "word position" for every vowel-starting word of the sorted list, in sorted order. It returns an empty list when no word starts with a vowel; the provided main then prints 0 . Input Format Read from standard input. w1 w2 ... wN A single line containing the N words of the list, separated by a single space. Output Format For every word of the sorted list whose first character is a vowel, print the word and its position in the sorted list, separated by a single space, one word per line, in the order they appear in the sort