He had access to very good schooling in his childhood and free time to pursue his interests (computer programming). This was pure luck and critically important in forming who he is today.
He was able to obtain Canadian citizenship through his mother. This was pure luck and was very important when he emigrated to the US.