Zero sum subsequences and hidden subgroups