Pergunta de entrevista da empresa TeleTracking

Permutations divisible by 8. Array of integer strings is given and you have to return an array with Yes or No answers for each permutation