Klarna interview question

Asked to solve 3 coding challenges