Build the Google Stock Wizard.

Medium
Company: Premium
GoogleAmazon

Imagine you're building a "Stock Wizard" application for Google Finance. This wizard allows users to create complex, multi-step stock analysis workflows. The user can define a series of operations to perform on a stock, in a specific order. Each operation takes the stock data as input and produces an output (which could be another stock data point or a boolean signal for trading). A workflow can include operations like calculating moving averages, relative strength index (RSI), applying filters based on price or volume, and even executing trades (simulated, of course!).

The core challenge here is designing a flexible and extensible system that can accommodate a growing number of operations and complex workflows, while also ensuring thread safety and efficient execution. We need to think about how to represent stocks, operations, workflows, and the execution engine that ties it all together. The design should be adaptable to new analysis techniques and integration with different data sources.

Requirements

Interview Simulation

Experience a realistic interview conversation. The interviewer will ask clarifying questions,and you'll reveal your understanding of the requirements.

Interviewer

Let's start by understanding the scope. What are the core functionalities this system needs to provide?

💡 Interview Tip

Identify the Actors (Who uses the system?) and their Use Cases (What are they trying to achieve?). Start with the 'Happy Path' scenarios.

Press ⌘ + Enter to submit

Premium Content

View detailed solutions.

UNLOCK PREMIUM