XTS Group Interview Question

Normal ruby and rails basic question