IKEA interview question

Double entry