cpp implemenation of Jump Game II
modification of the c plus plus file extension name from cpp to cc