Solve Programming Assignment