結果 : compare two linked lists hackerrank solution in python