Pergunta de entrevista da empresa Lennar

It was literally like twosum and sort array or smth. I could have literally written the code in C.