KPIT Technologies interview question

use pointer to write a program