Bloomberg Interview Question

1 very easy question and asks about the time complexity 1 very easy brain teaser question but without coding.