Wipro NTH Coding Question- 19