Nagarro interview question

Ruby on rails basic questions