Find the Output: Two changing while conditions