Sunset Hills

An array of 6 buildings are facing the sun. The height of each building from West to East is given in an integer array. You have to tell which buildings will be able to see the sunset.

Instructions

There are 6 buildings in Sunset Hills. Enter the number of stories of each building and the program will tell you which building will get sunlight at sunset.

Enter the number of stories of each building.


Which building sees the sun..