1. Write a program, which reads from the console two integer numbers N and K (K>N) and array of N integers. Find those K consecutive elements in the array, which have maximal sum.
2. Sorting an array means to arrange its elements in an increasing (or decreasing) order. Write a program, which sorts an array using the algorithm "selection sort".