Ugam interview question

Write 2 programs with flowchart