12331 in words is written as :

Twelve Thousand Three Hundred and Thirty One