Below hackerearth qn has been asked in one of coding qns
Farthest from zero
You are given an integer array A of size N.
Task