Taboola interview question

loop over array and get the n number.