HSBC interview question

create cards stack solution and shuffle it