Pergunta de entrevista da empresa XTS Group

Normal ruby and rails basic question