Solutions for task2 and task3 for interview at Muzzley.