added solution to SRMCards problem