TASK DEFINITION: In this task, you need to answer 'Yes' if the given word is the longest word (in terms of number of letters) in the given sentence, else answer 'No'. Note that there could be multiple longest words in a sentence as they can have the same length that is the largest across all words in that sentence.
PROBLEM: Sentence: 'a pair of surfers approach the waters edge where the waves spread thinly over the compacted sand'. Is 'compacted' the longest word in the sentence?

SOLUTION: Yes

PROBLEM: Sentence: 'a pizza cut into pieces with an action figure nearby'. Is 'pieces' the longest word in the sentence?

SOLUTION: Yes

PROBLEM: Sentence: 'this is a patriotic three tiered cake display'. Is 'a' the longest word in the sentence?

SOLUTION:
No