Ion Channel interview question

Pair programming exercise with team lead