Day 2: Complete Problems 04 to 09

Signed-off-by: Pang Yan Han <pangyanhan@gmail.com>