Wipro NTH Coding Question- 28