AI Camp interview question

String Manupulation, Print range of a number