Cognizant Coding Question- 17