Bridgenext interview question

Technical round contained a few algorithms