Domanda di colloquio di Maplesoft

What is wrong with this function?