9999999540 in words is written as :

Nine Billion Million Thousand Five Hundred and Forty