What is Sunset Hills?

Sunset Hills is about an array of buildings is facing the sun. The heights of each building from West (left) to East (right) is given in an integer array. You have to tell which buildings will be able to see the sunset. Write a program that prints how many buildings and which buildings will be able to see the sunset, given the array.

Technologies Used: HTML, JavaScript, CSS, Bootstrap.

Example: The user enter the height of each building in order 2,4,6,2,2,8. The out put will be 4 buildings because 2 < 4 < 6 < 8.

OR you can simply press the "Advance Button" if you are too lazy like me to enter number.





How many building can see sunset?
Which building have sunset view?