#include "PartitionInteger.h"

/**  Computes a new integer from N by separating all the even digits
 *   digits from N and all the odd digits from N. 
 * 
 * For example:
 *  {23410, EVENHIGH} --> 24031
 *  {23410, ODDHIGH}  --> 31240
 *  {2640, ODDHIGH}   --> 2640
 * 
 * Pre:  N is initialized
 *       Ordering is EVENHIGH or ODDHIGH
 * Returns:  integer obtained by reordering the digits of N as described
 *
 * Restrictions:
 *   - uses only its parameters and local automatic variables
 *     (i.e., no global variables)
 *   - does not make any use of character variables or arrays
 *   - does not read input or write output
 */
uint32_t PartitionInteger(uint32_t N, Ordering order) {
   
   /*** IMPLEMENT THE BODY OF THIS FUNCTION ***/
   
   return 1234;
}
