Domanda di colloquio di JPMorganChase

If given more time to code the solution, what would you do differently?