Alpaca interview question

Coding problem in Go language.