Update Prob1.cpp

Added temporary array storage.