Programming Questions  for coursera course Algorithms: Design and Analysis, Part 1