find num positions dividing number (HackerRank)