func main() { guard let n = Int(readLine() ?? "") else { return } guard let line1 = readLine(), let line2 = readLine() else { return } let inOrder = line1.split(separator: " ").compactMap{Int($0)} let postOrder = line2.split(separator: " ").compactMap{Int($0)} var inOrderIdx = Array(repeating: -1, count: n+1) for i in 0..