Pregunta de entrevista de Wargaming

Solve a WoT related algorithm problem