Refactor in go
Refactor in python
Add problem1-2 written by groovy