Klarna interview question

Just had a logic test.