Reconstruct route from unordered travel tickets | Pinterest Interview Question