Add solutions to problem #15 and #16

- Added solution to problem #15

- Added solution to problem #16