Idexcel interview question

RoR basic and ruby basics