Added solution to problem 28

Signed-off-by: Arnaud Amiel <aamiel@gmail.com>