Medtronic Interview Question

1 Programming task. 2 Design task.