Pergunta de entrevista da empresa Amazon

Solve 2 hackerrank problems (not really a question) ?