[Coursera]: Problem set assignment2
https://class.coursera.org/algo2-002/quiz/feedback?submission_id=61414Q