Solve Problem#19
Solve Problem#22