Please add more cases to the test suite, or else it is trivial to solve this problem.
Rafael is right and since you made this into a badge problem it is even more essential to fix this
5867 Solvers
380 Solvers
07 - Common functions and indexing 1
352 Solvers
289 Solvers
133 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!