SAP interview question

Graph , Array, Algorithms based on some maths