Adding go test solution for problem 357.