The first question was puzzle, I didn't get the question also I didn't find anywhere in google. The second question was algo, I have to find the duplicate in a array.
Anónimo
I answered the second question with extra space and tried the first one not sure about the first one.