Whenever you're ready, walk me through how you'd approach this.
Tell me about a time you solved a coding problem where you had to calculate maximum profit in an array by comparing adjacent values.