Hi all, Can you help to understand why it fails on conditions 3 and 4? On the test input it produces the correct output. Input: grandfather grandmother daughter program car Output: grandfather grandmother