Pergunta de entrevista da empresa Pocket Gems

2nd round phone: Reverse Backpack problem