Pregunta de entrevista de Bunker

How would you alter the following code?

Respuesta de la entrevista

Anónimo

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.