Pergunta de entrevista da empresa Udemy

How could you break this function?