Pregunta de entrevista de TBO.com

Two Coding Questions: 1. Check Duplicates number 2. Given a number and we have to extract each number from that given number and then check whether the given number is divisible by or not. If divisible then give the count.