NubankSoftware Engineer · Phone ScreenCodemia practiceClassify Retried Pix Requests by Idempotency Key and Window
Given Pix transfer requests in arrival order, each with a request id, an idempotency key, a timestamp and a payload (destination key and amount), label each one accepted, duplicate (same key and same payload within W seconds of the accepted request) or conflict (same key, different payload, within W).