Domanda di colloquio di JPMorganChase

Both were array questions in python,