Amazon Interview Question

https://www.geeksforgeeks.org/number-buildings-facing-sun/