Ideas2IT Interview Question

Nested if from java and basic questions