Exercise 36

Signed-off-by: Salil Kanitkar <slashforu@gmail.com>