Pergunta de entrevista da empresa ShipBob

LLD problem on deck of cards