Wipro NTH Coding Question- 21