• About correct answers...

 

From: https://checkio.org/mission/determine-the-order/solve/

For the case ["ghi","abc","def"] the expected output is "abcdefghi", but wouldn't be "adgbehcfi" a correct answer too? I mean, it satisfies all the requirements and doesn't break any rule. I used a double linked list approach for this problem btw.