SAP Interview Question

Given a string, return all prefixes in alphabetical order.