Pergunta de entrevista da empresa WNS-Vuram

Logical question and Some basic coding questions