16. Write a program with non-void version of above function and then write flow of execution for both the programs.