A good example of pointer code at Hacker Rank

A good example of pointer code at Hacker Rank: