Cisco interview question

I had to make 3 programs.