phrase: words separated by exactly one space, with no leading or trailing spaces. Return True if its words form such a ring, and False otherwise. Uppercase and lowercase letters count as different.phrase="tiger rabbit tulip pot" → True
tige**r** → **r**abbi**t** → **t**uli**p** → **p**o**t**, and that final t matches the first letter of tiger.
phrase="level" → True
A single word closes on itself: it starts and ends with l.
phrase="Apple eagle" → False
Case matters: eagle ends in e while Apple starts with A.
phrase consists of Latin letters (either case) and spacesphrase="tiger rabbit tulip pot"
True
Run checks the first 3 tests in your browser. Submit checks all 222 tests on the server, hidden ones included.