CodeTantra Interview Question

Introduction two programs and ask me to solve them