Pregunta de entrevista de Indeed

Basic string manipulation problems and some abstract math concepts, nothing hard really