Koinly interview question

How would you build a distributed system like facebook?