Ad

here is the description of the 3 offers
ESSENTIAL : just one device
STANDARD : HD and 2 devices
PREMIUM : UltraHD and 4 devices

Write the code that returns the right offer

using System;

public class Kata
{
  

public static string GetContract( int numberOfDevices, bool ultraHd, bool hd)
        {
            string result = "ESSENTIEL";
            if (numberOfDevices>2 || ultraHd)
            {
                result = "PREMIUM";
            }
            else
            {
                if (numberOfDevices ==  2  || hd)
                {
                    result = "STANDARD";
                }
            }
            return result;

        }
}