Ideas2IT interview question

simple programming and logical problems like array problems