Updated 1st solution. Still need to finish because not providing correct answer.