added p36 c solution