Pergunta de entrevista da empresa Tata Consultancy Services

Difference between if and nested if