Bridgenext Interview Question

Technical round contained a few algorithms