Wipro NTH Coding Question- 35