Samyak Software interview question

Simple programming logics for string manipulation and number processing.