Create Stock Maximize - HackerRank.cpp