Klarna Interview Question

Just had a logic test.