Pergunta de entrevista da empresa Intuit

Time and space complexity of code written