Wipro NTH Coding Question- 13