Ximedes interview question

How you would solve it using concurrency approaches?