I am giving back to the LC community as this platform has helped me a lot. First question was I am given an array of buidling heights and the ocean "is at the end of the array", I am to return a function which contains the indices of the heights which will have an ocean view. I asked clarifying questions and got all of the ambiguity cleared then offered to do this using a non native data structure which, right now I cannot remember which one I said. The interviewer agreed that while that would be the most efficient way we would not have time for the complete implementation and asked for a brute force solution, which I just could not come up with I was too focused on seeing the time tick down and that knocked me off my game. The interviewer decided to skip to the next question which was traverse through the superviews of two UIViews respectively and returning their least in common. Again he asked for brute force only and I was able to solve this and explain time and space complexity and trade offs due to the brute force request. I am expecting to get rejected since I was not able to render a brute force to the first. We did go over time by 20 mins discussing life at FB though so it was nice to hear about that. This was for a iOS engineer position.