Skydio Interview Question

How to solve a function that modifies data in place.