Added solution 31
fixed test output
Added solution 30
Added solution 34