Pergunta de entrevista da empresa SAP

1. Check if array is valid. Array is valid if difference between any two numbers should not be less than given k. 2., Find longest subarray following above rule. 3. Graph DFS 4. Find index in array such that sum of numbers on either side is same.