Wipro NTH Coding Question- 20