A permutation where each element indicates either number of elements before or after it
Given an array of n elements. The task is to check whether a permutation of given array exists, such that each element indicate number of element present before or after it. Print "Yes" if exists, else print "No". Examples : Input : arr[] = {1, 3, 3, 2} Output : Yes {3, 1, 2, 3} is a permutation in