Mphasis interview question

Write two programs