ITC Infotech interview question

Questions was based on DSA