Circular Sentence

A sentence is circular if each word's last character matches the next word's first character, and the last word's last character matches the first word's first character. Check if a given space-separated sentence satisfies this property.

Examples
Input: "leetcode exercises sound delightful"
Output: true
Hints

Circular Sentence

A sentence is circular if each word's last character matches the next word's first character, and the last word's last character matches the first word's first character. Check if a given space-separated sentence satisfies this property.