Stellantis Interview Question

sum of elements equals to x