AKUNA CAPITAL Interview Question

Card matching problem