Capacity Provisioning Motivated Online Non-Convex Optimization Problem with Memory and Switching Cost