Hi Suresh,

For calculating winning combination use these steps (i know winning combination is three same card... but three jack is less than 2 king and 1 queen)
Ace got higher points(Calculate how many ace left)...
King got next then queen and jack...
Now i thing u got the winning combination...

For the code u r very near... u r telling For Ace "A" occurs 1st so u took 1... now u can also take "A" as 4(rotate the count not all the time)... For Cluver use Club...
Use my previous post to crack the answer...

Thanks
Manoj