Source: https://www.cmpe.boun.edu.tr/sites/default/files/courses/CmpE 350//cmpe350_spring2018_ps10_solutions.pdf