Fast Enterprises interview question

IF and FOR loop questions