Week 8 - Problem 9: Alternate code

Dear Sirs,
Attached snapshot are alternate ways with lesser processing timings:

2 Likes