Pergunta de entrevista da empresa Bunker

How would you alter the following code?

Resposta da entrevista

Sigiloso

9 de ago. de 2019

It was specific to the question and I don't actually remember the details, but I remember emphasizing separating a chunk into its own method so that unit testing would be easier for one of the functions.