Added solution to 32.
Correctness check for 32.