Medtronic interview question

1 Programming task. 2 Design task.