Add solution to problem number 7.

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