Prefer "while" loops to "for" loops for performance (especially important when there are return statement sin the loop)
Code complete