Deloitte interview question

Difference between scan and substr?