Find the Output: Nested condition evaluation