How to Solve this Problem from Geeks for Geeks Hiring Contest?
https://practice.geeksforgeeks.org/contest-problem/maximum-absolute-difference/0/