revc solution added
Added solutions for gc, hamm and subs problems