Pulse Biosciences interview question

Can you write the code to for the integration?