Cognizant Coding Question- 30