Please help me to complete the online programmer Academy. I have spent 8 hours looking for the point of the problem but until now I did not find the problem sought as well as the solution.
HERES THE QUESTION :
Complete the code snippet in a simple program on the side to be able to run well.
Complete the declaration of the getFirstAndLast function which becomes an extension of the String class with the return type of the Map<String, Char> which serves to get the first and last character of its receiver value.
Add a function to print the values of the firstChar and lastChar variables on the console.
If it is run, the console displays the following text:
First Letter is K and N for second letter