Pergunta de entrevista da empresa Rather Labs

I was asked to work on a code challenge and after that technical questions were made based on it.