Pregunta de entrevista de Deloitte

Difference between scan and substr?