Zensar Technologies interview question

Good code structure