Create findPredecessor.cpp