Pregunta de entrevista de WePay

Software engineering string based question for coding round