AKUNA CAPITAL interview question

A basic problem about concurrency.