Pergunta de entrevista da empresa Tata Technologies

If else coding question and a numbers question