Refactor into getArrayOfDiffs and maxFromDiffs
Refactor into getArrayOfDiffs and maxFromDiffs

rootulp/hackerrank,rootulp/hackerrank,rootulp/hackerrank,rootulp/hackerrank,rootulp/hackerrank,rootulp/hackerrank