Capital One interview question

Time complexities of the stuff I coded in the technical