prob1: Using generator now.
prob2: Added solution
prob3: Added solution
prob4: Added solution
prob5: Added solution