Wipro NTH Coding Question- 32