ITC Infotech interview question

Based on your work ex