Mphasis Interview Question

Interviewer asked two programs