← Questions

Payment command parser and state machine

0
StripeCodingLast asked Aug 2026

A coding interview question asked in Stripe's HackerRank assessment, last asked Aug 2026. It tests state machines, parsing and object-oriented design.

Build the parser and the object-oriented core of a payment command console. Each input line is one command with an operation name and exactly four argument positions.

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

What it tests

state machines · parsing · object-oriented design

Your code and the AI tutor open when you unlock this question.