Amar,
I think you have the order of the planets wrong in the test suite. Mars is #4, and #2 is Venus (which is missing from your list).
Thanks william, edited it.
All your base are belong to us
464 Solvers
286 Solvers
495 Solvers
623 Solvers
2493 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!