Hacker Rank : Linux Shell : Looping and Skipping