So I have a string and I need to find the word which matches two constraints viz, the number of characters in the word should be even and it should be the longest such word.
For ex:
Input: I am a bad coder with good logical skills
Output: skills
Just starting off with R so any help would be great.