Add solution to problem number 10.

Signed-off-by: darkestkhan <darkestkhan@gmail.com>