LLM Extraction Review Tool: PDF Row Highlights, Save Bug Fixes and Balance Checks

Quick Overview

A frontend exercise on a React tool where accountants check 495 LLM-extracted transactions against a 21-page PDF statement. It tests mapping PDF bounding boxes onto the rendered page, debugging state bugs in asynchronous saves without AI, and designing checks that do not rely on the extracting model.

LLM Extraction Review Tool: PDF Row Highlights, Save Bug Fixes and Balance Checks

Company: Multiplier Holdings

Role: Software Engineer

Category: Software Engineering Fundamentals

Difficulty: hard

Interview Round: Technical Screen

An accounting firm receives a client's 21-page investment account statement in pounds sterling. An LLM has read the PDF and extracted 495 transactions. Before these numbers go into a tax return, an accountant has to check every extracted value against the PDF, and today the only way to do that is to find each row on the page by eye. The pipeline is: statement PDF → LLM extraction → human review (this exercise) → tax return, which must be right. You work on a small React app for the human review step, first as a take-home and then in a live session with an engineer. - Stack: Vite, React 18, TypeScript and Tailwind. You may change anything, including replacing libraries. - `ReviewPage.tsx`: the extraction table on the left, the PDF on the right. - `ExtractionTable.tsx`: double-click a cell to edit it; Enter saves, Esc cancels. - `PdfViewer.tsx`: built on react-pdf; shows one page at a time, with paging and zoom. - `fakeApi.ts`: an in-memory fake back end that resets on page refresh. `fetchRows()` takes about 0.3 s and `saveRow(row)` takes a random 1 to 2 s. - Cells can be edited only after a session code is entered on the home page. `extraction.json` holds one object per extracted row plus a summary. Each field of a row is a cell, roughly: ```ts type Cell<T> = { value: T; location: { page: number; bbox: [number, number, number, number] } | null; confidence: number; // 0 to 1, the model's own estimate }; ``` - `page` starts at 1. `bbox` is `[x0, y0, x1, y1]` in PDF points, with the origin at the bottom-left corner of the page. - `location: null` means the extractor could not say where it read the value. - The fields are `date`, `type` (Purchase, Sale, Dividend, Direct debit, Interest, Management fee or Withdrawal), `fund`, `isin`, `units`, `price`, `moneyOut`, `moneyIn` and `balance` (the cash balance after the transaction). A field that does not apply to a row is `null`. - The summary, read from page 1, holds the opening balance, total money in, total money out and the closing balance. ### Clarifying Questions - Do all pages share one size, and is the bbox convention the same on every page? - May I change the save API, for example to send only the edited field? - Will one accountant review a statement at a time, or several at once? ### Part 1: Show the selected row on the PDF Take-home task: when the reviewer clicks a row in the table, draw a highlight over that row's position on the PDF. Then write down anything in the data or the code that surprises you, and the questions you would bring to the development team. In the live session you explain your state design and how the highlight is placed. ```hint Convert coordinates once Work out how a box in PDF points maps onto the rendered page at any zoom level, and where the page's true size should come from. ``` #### Clarifying Questions for this Part - What should the reviewer see for cells whose `location` is `null`? - A row's cells can sit on two pages, which is not necessarily an extraction error. How should that row be shown? #### What This Part Should Cover - State for the selected row, with the highlight boxes derived from it. - Coordinate conversion that stays correct across zoom and page changes. - Rows that span pages, missing locations and fields that do not apply. - Concrete observations and questions about the extracted data. ### Part 2: Fix the save bugs without AI After you enter the session code, the interviewer asks you to edit two different cells. Two problems appear: saving the second cell reverts the first cell's edit, and every save replaces the whole page with the loading skeleton for a moment. Without AI help, find the cause of each problem in the code, fix both, and remove the skeleton flash. The save path in `ReviewPage.tsx` behaves like this simplified reconstruction: ```tsx import extraction from './extraction.json'; export function ReviewPage() { const [rows, setRows] = useState<Row[]>([]); const [loading, setLoading] = useState(true); async function loadRows() { setLoading(true); setRows(await fetchRows()); setLoading(false); } useEffect(() => { loadRows(); }, []); async function saveCell(rowIndex: number, field: Field, value: CellValue) { const row = { ...extraction.rows[rowIndex] }; row[field] = { ...row[field], value }; await saveRow(row); await loadRows(); } if (loading) return <Skeleton />; return <ReviewLayout rows={rows} onSaveCell={saveCell} />; } ``` ```hint Trace one save Follow a single save from the Enter key to the next render, and list every piece of data it reads and every piece of state it changes. ``` #### What This Part Should Cover - The cause of the reverted edit and of the skeleton flash. - A fix that keeps edits to different cells, including saves that overlap in time. - What the reviewer sees while a save is in flight and when it fails. ### Part 3: Help the reviewer find the wrong values Discuss how to make the review faster and more trustworthy: today the reviewer has to read all 495 rows. The interviewer challenges each idea: - If your check runs an LLM again, how does it catch the mistakes of the first run, which already used a strong model? - Assume the extraction used the best model available and gave its best guess. A second run will probably not tell you where it is unsure, and the same model is likely to repeat the same mistakes. - Suppose filtering leaves 50 medium-confidence rows out of several hundred. That is still a lot, and people will still miss errors. What else can you do? Then pick your best idea and build it with an AI assistant in about 10 minutes. ```hint Look for redundancy Ask which values on a statement can be computed from other values on the same statement. ``` #### What This Part Should Cover - Review workflow changes such as fast saves and focusing attention on suspect cells. - Verification that does not depend on the extracting model or its confidence. - Deterministic checks that shrink the review set, and their limits. - A working implementation scoped to about 10 minutes, with a short spec first. ### What a Strong Answer Covers - Clear reasoning about React state and asynchronous saves. - Correct mapping between PDF coordinates and screen coordinates. - Skepticism toward model confidence, backed by checks that are independent of the extractor. - Product judgment about what makes an accountant trust the numbers, and the ability to work both with and without AI. ### Follow-up Questions - Some rows in the PDF itself do not add up. How should the tool show a break that comes from the source document rather than from the extraction? - How would you keep a reviewer's unsaved edits safe across a page refresh? - How would you record which values a person confirmed, so the tax return can be audited later?

Overview: A frontend exercise on a React tool where accountants check 495 LLM-extracted transactions against a 21-page PDF statement. It tests mapping PDF bounding boxes onto the rendered page, debugging state bugs in asynchronous saves without AI, and designing checks that do not rely on the extracting model.

Read the full Multiplier Holdings Software Engineer interview experience this question came from

Multiplier Holdings logo
Multiplier Holdings
Nov 14, 2026
hardSoftware EngineerTechnical ScreenSoftware Engineering Fundamentals
0
0

An accounting firm receives a client's 21-page investment account statement in pounds sterling. An LLM has read the PDF and extracted 495 transactions. Before these numbers go into a tax return, an accountant has to check every extracted value against the PDF, and today the only way to do that is to find each row on the page by eye. The pipeline is: statement PDF → LLM extraction → human review (this exercise) → tax return, which must be right.

You work on a small React app for the human review step, first as a take-home and then in a live session with an engineer.

  • Stack: Vite, React 18, TypeScript and Tailwind. You may change anything, including replacing libraries.
  • ReviewPage.tsx : the extraction table on the left, the PDF on the right.
  • ExtractionTable.tsx : double-click a cell to edit it; Enter saves, Esc cancels.
  • PdfViewer.tsx : built on react-pdf; shows one page at a time, with paging and zoom.
  • fakeApi.ts : an in-memory fake back end that resets on page refresh. fetchRows() takes about 0.3 s and saveRow(row) takes a random 1 to 2 s.
  • Cells can be edited only after a session code is entered on the home page.

extraction.json holds one object per extracted row plus a summary. Each field of a row is a cell, roughly:

type Cell<T> = {
  value: T;
  location: { page: number; bbox: [number, number, number, number] } | null;
  confidence: number; // 0 to 1, the model's own estimate
};
  • page starts at 1. bbox is [x0, y0, x1, y1] in PDF points, with the origin at the bottom-left corner of the page.
  • location: null means the extractor could not say where it read the value.
  • The fields are date , type (Purchase, Sale, Dividend, Direct debit, Interest, Management fee or Withdrawal), fund , isin , units , price , moneyOut , moneyIn and balance (the cash balance after the transaction). A field that does not apply to a row is null .
  • The summary, read from page 1, holds the opening balance, total money in, total money out and the closing balance.

Clarifying Questions Guidance

  • Do all pages share one size, and is the bbox convention the same on every page?
  • May I change the save API, for example to send only the edited field?
  • Will one accountant review a statement at a time, or several at once?

Part 1: Show the selected row on the PDF

Take-home task: when the reviewer clicks a row in the table, draw a highlight over that row's position on the PDF. Then write down anything in the data or the code that surprises you, and the questions you would bring to the development team. In the live session you explain your state design and how the highlight is placed.

Clarifying Questions for this Part Guidance

  • What should the reviewer see for cells whose location is null ?
  • A row's cells can sit on two pages, which is not necessarily an extraction error. How should that row be shown?

What This Part Should Cover Guidance

  • State for the selected row, with the highlight boxes derived from it.
  • Coordinate conversion that stays correct across zoom and page changes.
  • Rows that span pages, missing locations and fields that do not apply.
  • Concrete observations and questions about the extracted data.

Part 2: Fix the save bugs without AI

After you enter the session code, the interviewer asks you to edit two different cells. Two problems appear: saving the second cell reverts the first cell's edit, and every save replaces the whole page with the loading skeleton for a moment. Without AI help, find the cause of each problem in the code, fix both, and remove the skeleton flash. The save path in ReviewPage.tsx behaves like this simplified reconstruction:

import extraction from './extraction.json';

export function ReviewPage() {
  const [rows, setRows] = useState<Row[]>([]);
  const [loading, setLoading] = useState(true);

  async function loadRows() {
    setLoading(true);
    setRows(await fetchRows());
    setLoading(false);
  }

  useEffect(() => { loadRows(); }, []);

  async function saveCell(rowIndex: number, field: Field, value: CellValue) {
    const row = { ...extraction.rows[rowIndex] };
    row[field] = { ...row[field], value };
    await saveRow(row);
    await loadRows();
  }

  if (loading) return <Skeleton />;
  return <ReviewLayout rows={rows} onSaveCell={saveCell} />;
}

What This Part Should Cover Guidance

  • The cause of the reverted edit and of the skeleton flash.
  • A fix that keeps edits to different cells, including saves that overlap in time.
  • What the reviewer sees while a save is in flight and when it fails.

Part 3: Help the reviewer find the wrong values

Discuss how to make the review faster and more trustworthy: today the reviewer has to read all 495 rows. The interviewer challenges each idea:

  • If your check runs an LLM again, how does it catch the mistakes of the first run, which already used a strong model?
  • Assume the extraction used the best model available and gave its best guess. A second run will probably not tell you where it is unsure, and the same model is likely to repeat the same mistakes.
  • Suppose filtering leaves 50 medium-confidence rows out of several hundred. That is still a lot, and people will still miss errors. What else can you do?

Then pick your best idea and build it with an AI assistant in about 10 minutes.

What This Part Should Cover Guidance

  • Review workflow changes such as fast saves and focusing attention on suspect cells.
  • Verification that does not depend on the extracting model or its confidence.
  • Deterministic checks that shrink the review set, and their limits.
  • A working implementation scoped to about 10 minutes, with a short spec first.

What a Strong Answer Covers Guidance

  • Clear reasoning about React state and asynchronous saves.
  • Correct mapping between PDF coordinates and screen coordinates.
  • Skepticism toward model confidence, backed by checks that are independent of the extractor.
  • Product judgment about what makes an accountant trust the numbers, and the ability to work both with and without AI.

Follow-up Questions Guidance

  • Some rows in the PDF itself do not add up. How should the tool show a break that comes from the source document rather than from the extraction?
  • How would you keep a reviewer's unsaved edits safe across a page refresh?
  • How would you record which values a person confirmed, so the tax return can be audited later?