Nearest power of 2 of nearest perfect squares of non-repeating array elements
Given an array arr[] consisting of N positive integers, the task is to find the nearest perfect power of 2 of the nearest perfect squares of unique array elements. If the array does not contain any unique element, then print -1. Examples: Input: arr[] = {4, 11, 4, 3, 4}Output: 4 8Explanation:The uni