Array consist of -1 and 1, Find count of all sub-arrays where sum = 0. Input: [-1,1,-1,1]
Output: 4 [-1,1] [1,-1],[-1,1],[-1,1,-1,1]
Given an ODD number, print diamond pattern of stars recursively.
Example Input: n = 5,
Output:
* *** ***** *** *