adding updated answer06.c with completed partitionIncreasing function