Wipro NLTH Coding Question- 18