Pergunta de entrevista da empresa ExaWizards

Time and space complexity of your own algorithm you wrote during the test.