SAP interview question

Js Algorithms