Hey folks !

So I got this task and I really need your help to program. The question follows as...

"Input one sentence which you can see on the top part of the monitor. Then for each letter find words of sentence where they are meeting and write the list under the sentence. Near each word write the meeting number of this letter"

Thanks ! :)