Argusoft interview question

Trees and Birds problem based on maths and logical reasoning