In the last case.. 5,5,10 the minimum is showing 10. is my logic wrong?