The sun sets in the West (left). Determine which buildings are able to see the sunset by calculating if any of the buildings before are taller, thus blocking the view. This is done by taking the position of the array's index and evaluating whether or not any of the previous integers have a greater value.