Pergunta de entrevista da empresa Constructor

example practical question: write code to represent a deck of cards. you must init them, shuffle them, deal them, sort them by rank and color