harbor run -t openthoughts/tasktrove-exp-rpt-codenet-python-v2-codenet-python-7766
harbor download openthoughts/tasktrove-exp-rpt-codenet-python-v2-codenet-python-7766
You are given three strings, A, B, and C. Your task is to determine if they form a word chain. A word chain is defined by the following conditions:
If both conditions are met, you should print YES. If either condition is not met, print NO.
YES
NO
Note: Each string is guaranteed to be non-empty.
Input:
apple echo orange
Output:
dog giraffe elephant
Place your solution in the /app/ directory of your project.
/app/
Important: place your implementation at /app/solution.py so the verifier can run it.
/app/solution.py