Merge customers and preserve history | Meta Interview Question