algorithms in SAP interview