Given an array, every element in this array should equal to itself minus the first smaller element to its right.
Anonymous
Through questions like this, interviewers are mostly trying to test your skillset (and its relevance to the role) as robustly as possible, so be prepared for multiple offshoots and followups. It could be a useful exercise to do mocks with friends or colleagues in Expedia to get a real sense of what the interview is actually like. Alternatively Prepfully has a ton of Expedia Software Engineer(Internship) experts who provide mock interviews for a pretty reasonable amount. prepfully.com/practice-interviews
Check out your Company Bowl for anonymous work chats.