Fiserv Interview Question

Coding program for no. Of letter