BitGo Interview Question

I was asked technical problems (leetcode)