Added solution to problem 35.
Added solution to problem 36 (not entirely satisfied with this, might have to come back to it later).