using System.Collections.Generic;
using System.Threading.Tasks;
namespace NaseVjencanjeBa.Web.Zadaci
int[] a= { 2, 4, 1, 6, 5, 9, 7 };
int[] c= { 2 ,1,6,4,3,7};
public int solution(int[] a)
for (int i = 0; i < a.Count()-1; i++)
if (a[i] % 2 != 0 && a[i + 1] > a[i]) maxslices++;