Solutions to Discreet Optimization assignments of Coursera