Source: http://www.commsp.ee.ic.ac.uk/~tania/teaching/DIP%202014/DFT%20sample%20exam%20problems%20solutions.pdf