F. Wiener’s Trick and an Extremal Problem for $$H^p$$