1. Find maximum possible time HHMM by permuting four given digits

    Find maximum possible time HHMM by permuting four given digits