XTS Group interview question

Normal ruby and rails basic question