BitGo interview question

I was asked technical problems (leetcode)