Domanda di colloquio di Valkyrie Trading

Look at this problem and explain to me your code/process.