A good interview question answered with Go