Example 10 : For getting diagonals through vertex A of a pentagon ABCDE