In reply to NaveenReddy:
Your solution and alternate have no fork statements. And without knowing what kind code you intent to put in the loop, it will be hard to give a best recommendation.
In reply to NaveenReddy:
Your solution and alternate have no fork statements. And without knowing what kind code you intent to put in the loop, it will be hard to give a best recommendation.