Driver Code
document . write ( findDigits ( 1 ) + " " ) ; document . write ( findDigits ( 50000000 ) + " " ) ; document . write ( findDigits ( 1000000000 ) + " " ) ; document . write ( findDigits ( 120 ) + " " ) ;