[REFACTOR] Refactored the go version of the first challenge of Daily Programmer
to a more idiomatic and relatively simpler version.