Distributed (UK) interview question

I was asked to solve Algorithm Question