No of ways of selecting with 1 letter repeated = $10 * 1*9*8*7*5! /3!*2!$
Because after selecting a letter, to repeat it again ,there is only one way selecting same letter again.
Following same procedure,
no of ways = $10 * 1*9*8*7*5! /3!*2! + 10*1*1*9*8*5!/2!*3!+10*1*1*1*9*5!/1!*4!+10*1*1*1*1*5!/5!$