Compute max profit with forced trades
Company: Retool
Role: Software Engineer
Category: Coding & Algorithms
Difficulty: Medium
Interview Round: Technical Screen
Quick Answer: This question evaluates algorithmic problem-solving in the Coding & Algorithms domain, focusing on array processing and constrained optimization for maximizing stock-trading profit under a forced-trade requirement for exactly one or two buy-sell transactions; it assesses state management, edge-case handling, and arithmetic reasoning.