function seeTheSun() {
let bldgHeight1 = parseInt(document.getElementById("sunsetIn1").value);
let bldgHeight2 = parseInt(document.getElementById("sunsetIn2").value);
let bldgHeight3 = parseInt(document.getElementById("sunsetIn3").value);
let bldgHeight4 = parseInt(document.getElementById("sunsetIn4").value);
let bldgHeight5 = parseInt(document.getElementById("sunsetIn5").value);
let bldgArray = [bldgHeight1, bldgHeight2, bldgHeight3, bldgHeight4, bldgHeight5];
let newArray = [];
let count = 1;
let max = bldgArray[0];
newArray.push(max);
for (let i = 0; i < bldgArray.length; i++) {
if (bldgArray[i] > max) {
count++;
newArray.push(bldgArray[i]);
max = bldgArray[i];
}
}
document.getElementById("sunsetOut").innerHTML = `${count}`;
document.getElementById("buildingCnt").innerHTML = `${newArray.join(', ')}`;
}