Hacker Rank : Linux Shell : Text Processing  : head challenge #2