using System; using System.Collections.Generic; using System.IO; using System.Linq; class Solution { static void Main(String[] args) { var numbers = new[] {1,2,2,1,2}; var absoluteMax = numbers.Select(x => Math.Abs(x)).Max(); } }