employer cover photo
employer logo
employer logo

Tata Consultancy Services

Part of Tata Group

Engaged employer

Tata Consultancy Services interview question

How many unique letters were ins a given string?

Interview Answer

Anonymous

11 July 2025

Used a dict with each new letter as key and iterated through the string adding new letters to the dict and increment count for existing letters