improve problem3
Solved Problem5 :-p