Softwire interview question

Fix Ruby program