Wipro NTH Coding Question- 17