Question d’entretien chez DXC Technology

They asked me to code for two problem statements