Cognizant/Accenture/Kronos 2016 interview question - get all smith numbers upto 10000 on March 13, 2018