Recruit CRM interview question

Basic question on programming and aptitude.