Pergunta de entrevista da empresa Intuit

given a code need to solve explain the code with the complexities