Deloitte Interview Question

Difference between scan and substr?