Is this a function or not?

Answer:
Your answer should be function.
Step-by-step explanation:
Its a function because each input has an output.
Answer:
Not a function.
Step-by-step explanation:
A is the 1st letter in the alphabets.
C is the 3rd letter.
But D is the 4th not the 5th.