[39] Added primitive solution to problem 39