Pregunta de entrevista de INDmoney

How is consensus achieved in distributed systems?