Wipro NTH Coding Question- 4