Fiserv interview question

Coding program for no. Of letter