Klarna interview question

Based on some unimplemented API design and test cases