Input (grade 10): For example, an input "011101" has outer bits "01" and inner bits "1101"; the corresponding output would be "1001".
Output (grade 10): For example, an input "011011" has outer bits "01" and inner bits "1101"; the corresponding output would be "1001".