Backend Engineer ยท Take-Home Quiz

Logistic Calculation

Three engineering challenges implemented in PHP 8.3 / Laravel 13: a WhatsApp message parser, a geospatial database design, and a payment term calculator.

๐Ÿ“ฑ
Question 1

WhatsApp Message Parser

Parses raw WhatsApp logistics messages into structured JSON โ€” handling Indonesian dates, multi-destination cargo lines, PO dates, and formatting markers.

Regex State machine Date parsing
Try the parser โ†’
๐Ÿ—„๏ธ
Question 2

Database Design

MySQL/MariaDB schema for finding trucks within a given radius โ€” with a denormalised current-location table, B-tree bounding-box indexing, and a Haversine radius query.

MySQL Indexing Haversine
View schema โ†’
๐Ÿงฎ
Question 3

TOP Calculator

Calculates the Term of Payment for transporter invoices โ€” applying individual per-type delay caps and a final 45-day ceiling, with all 8 specified test cases passing.

Business logic PHPUnit Edge cases
Open calculator โ†’

Tech Stack

Laravel 13 PHP 8.3 MySQL 9 PHPUnit 12 Tailwind CSS