Infosys Interview Question

Write a simple v code and explain it.