Klarna interview question

Two programming exercises in a codility style platform, but no fancy complex algorithms needed.