Mapbar Interview Question

Write a program solving Mahjong linking games