Language: Java. The pull request has one bug. You get three tries to find the line, then a short debrief.
Travel apps can now book rooms through our API. They send the check-in date as text, "2026-03-14"; anything that is not a valid date must be refused with a 400, so the partner can show their user a proper error. A fresh formatter is created for every call, so the parser is safe to use from many threads.
Codetrap needs JavaScript: the code review happens in your browser.