Hexaware Technologies interview question

DSA related one was based on array and other was normal logic based