Find the Output: Nested if and final ladder