You are given the head of a Linked List. You have to move the last element to the front of the Linked List and return the list.
Given an array A of size N of integers. Your task is to find the sum of minimum and maximum element in the array.