Leetcode solution in Golang. The code was mostly written in early 2019.